package chances.wechat.model;

public class WechatToken {

	private String token;

	private String jsToken;

	private long effectTime;

	private String appId;

	public WechatToken() {

	}

	public String getToken() {
		return token;
	}

	public void setToken(String token) {
		this.token = token;
	}

	public String getJsToken() {
		return jsToken;
	}

	public long getEffectTime() {
		return effectTime;
	}

	public void setJsToken(String jsToken) {
		this.jsToken = jsToken;
	}

	public void setEffectTime(long effectTime) {
		this.effectTime = effectTime;
	}

	public boolean isEffective() {
		return System.currentTimeMillis() < this.effectTime;
	}

	public String getAppId() {
		return appId;
	}

	public void setAppId(String appId) {
		this.appId = appId;
	}

}
